home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
PROGRAMM
/
CC_C
/
0574.ZIP
/
$$DAT.ASM
< prev
next >
Wrap
Assembly Source File
|
1986-07-25
|
1KB
|
54 lines
include %c86.inc
ttl $$DAT, 1.00, 07-25-86
; This file defines the file table and other global variables
; for the $main module which contains initial entry code.
include d2ioh.inc
dseg
glblv _sysvals, word, 80h ; used by alloc()
htop dw 80h
savess dw 0 ; use unknown
savesp dw 0
glblv _args, word, 0 ; pointer to cmd line tail
glblv _errcod, word, 0 ; global error value
glblv _systype, word, 1 ; use unknown
; ftbdef 1 ; create file table
public _ftb ; c86 linker won't take macro
_ftb dw -1 ; ugc save buffer
db rdbit ; mode byte
db 0,0 ; crflg, ercd
; above is stdin - preopened for read only
dw -1
db wrbit
db 0,0
; above is stdout - preopened for write only
dw -1
db wrbit
db 0,0
; above is stderr - preopened for write only
dw -1
db rdbit+wrbit
db 0,0
; above is stdaux - preopened for read/write
dw -1
db rdbit+wrbit
db 0,0
; above is stdlst - preopened for read/write
rept 15
dw -1
db 0
db 0,0
; above is file - not open yet
endm
data ends
end